import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from '@/store'
import 'assets/reset.css'

import Vant from 'vant';
import 'vant/lib/index.css';
import { Lazyload } from 'vant';
Vue.use(Lazyload, {
  error:require('assets/img/error.jpg'),
  loading:require('assets/img/loding.gif')
});
Vue.use(Vant);

Vue.config.productionTip = false
Vue.filter('hhh',(value)=>{
  value= +value
  return `￥${value.toFixed(2)}`
})
if (sessionStorage.getItem('token')) {
  console.log(sessionStorage.getItem('token'))
  store.dispatch('getpxxx')
}
// console.log(sessionStorage.getItem('token'))
// store.dispatch('getpxxx')
store.dispatch('getLoaction')
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
